load("//bazel:ray.bzl", "ray_cc_test")

ray_cc_test(
    name = "pull_manager_test",
    size = "small",
    srcs = [
        "pull_manager_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//src/ray/object_manager:pull_manager",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "object_buffer_pool_test",
    size = "small",
    srcs = [
        "object_buffer_pool_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//:ray_mock",
        "//src/ray/object_manager:object_buffer_pool",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "ownership_object_directory_test",
    size = "small",
    srcs = [
        "ownership_object_directory_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//:ray_mock",
        "//src/ray/object_manager:ownership_object_directory",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "push_manager_test",
    size = "small",
    srcs = [
        "push_manager_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//:raylet_lib",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "spilled_object_test",
    size = "small",
    srcs = [
        "spilled_object_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//:raylet_lib",
        "@boost//:endian",
        "@com_google_absl//absl/strings:str_format",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "create_request_queue_test",
    size = "small",
    srcs = [
        "create_request_queue_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//src/ray/object_manager/plasma:plasma_store_server_lib",
        "@com_google_googletest//:gtest",
        "@com_google_googletest//:gtest_main",
    ],
)

ray_cc_test(
    name = "get_request_queue_test",
    size = "small",
    srcs = [
        "get_request_queue_test.cc",
    ],
    tags = ["team:core"],
    deps = [
        "//src/ray/object_manager/plasma:plasma_store_server_lib",
        "@com_google_googletest//:gtest",
        "@com_google_googletest//:gtest_main",
    ],
)
